package demo1;

import javax.xml.transform.Source;

public class Dog extends Animal implements ISwimming,IRunning{

    public Dog(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(name+"狗在啃骨头");
    }

    @Override
    public void running() {
        System.out.println(name+"欢快的跑");
    }

    @Override
    public void swimming() {
        System.out.println(name+"奋力的游泳");
    }
}
